package oocis.oocisSharing;

import java.io.IOException;

import oocis.util.*;

public class SourceDownloading extends SourceOperating {

	private Server server;

	private String remoteDir;

	private String remoteFilename;

	private String localFile;

	public SourceDownloading(Server _server, String _remoteDir,
			String _remoteFilename, String _localFile) {
		server = _server;
		remoteDir = _remoteDir;
		remoteFilename = _remoteFilename;
		localFile = _localFile;
	}

	public int operate() {
		try {
			return SVNClient.export(server.getAddress(), remoteDir,
					remoteFilename, localFile);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return 1;
		}

		// TODO Auto-generated method stub

	}

}
